form method = 'get'
  .panel.panel-default
    .panel-heading
      | #{@car_brand.name}
      = link_to "增加" , new_car_model_path(:id=>@car_brand.id), class: "btn btn-primary btn-xs", style: "margin-left:10px;", :remote=>true

    .panel-body
      .table-responsive
        table.table.table-bordered.table-hover
          tr
            th 系列
            th 操作
          
          -@car_brand.car_models.each do |c|
            tr
              td = c.name
         
              td
                = link_to "删除" , car_model_path(:id => c.id), :method => "DELETE", data: {confirm: '一旦删除,将无法恢复,是否删除?'}, class: "btn btn-danger btn-xs"
